#include <string>
#include <vector>
#include "xmlnode.h"
#include "blist.h"

using std::string;
using std::vector;

struct Packet{
	string sid;
	string from;
	string to;
	string type;
	string data;
};


string string4xmlnode( xmlnode *x );
xmlnode* xmlnode4string( const string &s );
bool popen_cxx ( const string&   command_i, vector<string>& result_o);
vector<string> getInkscapeDocuments();
std::string base64_encode(unsigned char const* , unsigned int len);
std::string base64_decode(std::string const& s);
Packet packet4xmlnode( xmlnode *packet_xml );
void showPacket( const Packet& pkt );
void showSelectContactDialog( const vector<PurpleBuddy*> &candidates, string app, void(*func)(string, PurpleBuddy*) );
void pidginSend( PurpleBuddy* contact, string serial, string stanza, string app );
bool isJIDsimilar( string left, string right );
string randomString();
